package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbSeckillOrderMapper;
import com.dongdongshop.pojo.TbSeckillOrder;
import com.dongdongshop.service.SeckillOrderService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@DubboService
public class SeckillOrderServiceImpl implements SeckillOrderService {

    @Resource
    private TbSeckillOrderMapper tbSeckillOrderMapper;

    @Override
    public void addOrderBefore(TbSeckillOrder order) {
        tbSeckillOrderMapper.insert(order);
    }
}
